from Tools.demo.spreadsheet import center

print("Hello World")

# def a(n):
#     if n==0 or n==1:
#         return 1
#     else:
#         return a(n-2)+a(n-1)
# def b(n):
#     for x in range(1,n+1):
#          print(f"{a(x)}",end="\t")
#
# b(39)

#

sum=0
n=input("请输入你要打印的水仙花数:")
for x in n:
    y=int(x)
    sum=sum+y*y*y

if sum==n:
    print(f"{n}是一个水仙花数")
else:
    print(f"{n}不是一个水仙花数")



# i=int(input("请输入一个数字i:"))
# for x in range(2,i):
#     if int(i)%x==0:
#         it=False
#     else:
#         it=True
# if it:
#     print(f"{i}是一个质数")
# else:
#     print(f"{i}不是一个质数")

#完数
# n=int(input("请输入一个数n:"))
# sum=0
# for x in range(1,n):
#     if x%n==0:
#         sum=sum+int(x)
# if sum==int(n):
#     print(f"{n}是一个完数")
for i in range(1,12,2):
    print(("*"*i).center(11))
for i in range(9,0,-2):
    print(("*"*i).center(11))




